

#ifndef __INPUT_MANAGER_H
#define __INPUT_MANAGER_H



#include <sys/time.h>



#define type_touch_event 1
#define type_net_event 2


//支持触摸屏和网络输入
typedef struct inputEvent{
	struct timeval	timevalue;
	int type;
	int x;
	int y;
	int pressure;
	char net_str[1024];



}inputEvent,*inputEvent_p;

typedef struct input_Device{


	char *name;

	int (*GetInputEvent)(inputEvent_p inputEventp);
	
	int (*DeviceInit)(void );
	int (*DeviceExit)(void );

	struct input_Device * ptNEXT;


	
}inputDevice, *inputDevice_p;

void RegsiterInput(inputDevice_p inputdevice_p);


//初始化系统，注册所有设备
int Inputinit(void);


//初始化设备
int initdeviceInput(void);



//获取输入设备的数据
int GetALLInputEvent(inputEvent_p inputEventp);






#endif





